home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000383_news@newsmaster….columbia.edu _Thu Dec 3 00:37:53 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA14828
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 3 Dec 1998 00:37:53 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA25317
  7.     for kermit.misc@watsun; Thu, 3 Dec 1998 00:37:53 -0500 (EST)
  8. From: Paul Brannan <pbranna@clemson.edu>
  9. Newsgroups: comp.protocols.kermit.misc,comp.terminals
  10. Subject: Escape sequence for scrolling in vi
  11. Date: Wed, 02 Dec 1998 23:36:56 -0500
  12. Organization: Clemson University
  13. Lines: 38
  14. Message-ID: <36661568.60033BF0@clemson.edu>
  15. NNTP-Posting-Host: 172-16-27-150.generic.clemson.edu
  16. Mime-Version: 1.0
  17. Content-Type: text/plain; charset=us-ascii
  18. Content-Transfer-Encoding: 7bit
  19. X-Mailer: Mozilla 4.5 [en] (WinNT; I)
  20. X-Accept-Language: en
  21. Path: news.columbia.edu!panix!nntprelay.mathworks.com!newsfeed.cwix.com!208.133.32.2!andromeda.vec.net!finch!hubcap.clemson.edu!not-for-mail
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:9590 comp.terminals:13001
  23.  
  24. I'm working on a telnet client called Console Telnet.  I've got most
  25. escape sequences working for a pseudo-vt100 terminal, and I've even got
  26. roughly 80% vttest compliance.  One sequence I haven't implemented is
  27. delete character across multiple lines, since that is rather difficult. 
  28. One would think though, that since most vttest tests work, that vi would
  29. work with TERM=vt100.  But that is not the case.  When I scroll up, vi
  30. sends a sequence similar to the following:
  31.  
  32. ESC[1;24r ESC[1;1H ESCM ESC1;25r ESC[1;1H blah \n
  33.  
  34. The spaces aren't really there; I just typed them for readability.  Now
  35. I would think that this would mean set scrolling from 1 to 24, then go
  36. to the top of the scrolling region (or is that the top of the screen?),
  37. perform a reverse index, reset the scrolling region to the entire
  38. screen, return to the top of the scrolling region again, and then print
  39. the new line.
  40.  
  41. ESCI does a reverse line feed; is that the same as reverse index?  Is
  42. reverse index supposed to honor scroll regions?  How is line 25 supposed
  43. to get changed with this crazy sequence?
  44.  
  45. I tried investigating Linux source, since that is a fairly decent
  46. terminal emulation, and it appears to set the scroll region with CSI
  47. P0;P1 r from P0-1 to P1.  I've been implementing it as P0-1 to P1-1. 
  48. When I try using P0-1 to P1, I get strange results when scrolling up. 
  49. The sequences sent by vi for scrolling up look like:
  50.  
  51. ESC[1;24r ESC[24;1H \n ESC[1;25r ESC[24;1H blah \n
  52.  
  53. I look at this and think that if it is correct to go P0-1 to P1, then
  54. the only way to get scrolling down to work properly is to change the
  55. operation of the line feed.  Is a line feed at the beginning of a line
  56. supposed to scroll the current line up or leave it alone?
  57.  
  58. TIA,
  59.  
  60. Paul Brannan
  61. pbranna@clemson.edu